package biz.obake.team.touchprotector;

import android.os.Build;
import biz.obake.team.android.g;
import biz.obake.team.touchprotector.f.k;
import biz.obake.team.touchprotector.lfd.d;
import biz.obake.team.touchprotector.qstile.QSTileLockService;
import biz.obake.team.touchprotector.qstile.QSTileSensorService;
import biz.obake.team.touchprotector.qstile.QSTileSettingsService;
import biz.obake.team.touchprotector.tpservice.TPService;
import biz.obake.team.touchprotector.ui.LockScreenNowActivity;

public class CustomApplication extends biz.obake.team.android.a {

    class a extends g {
        a(CustomApplication customApplication) {
        }

        /* access modifiers changed from: protected */
        public void a(Thread thread, Throwable th) {
            k.a();
        }
    }

    class b extends g {
        b(CustomApplication customApplication) {
        }

        /* access modifiers changed from: protected */
        public void a(Thread thread, Throwable th) {
            TPService.o();
        }
    }

    private void c() {
        e();
        biz.obake.team.touchprotector.g.a.f();
        d.d().h();
        LockScreenNowActivity.a(biz.obake.team.touchprotector.g.a.g("lock_screen_now"));
        if (Build.VERSION.SDK_INT >= 24) {
            QSTileSettingsService.a(biz.obake.team.touchprotector.g.a.g("qstile_settings"));
            QSTileLockService.a(biz.obake.team.touchprotector.g.a.g("qstile_lock"));
            QSTileSensorService.a(biz.obake.team.touchprotector.g.a.g("qstile_sensor"));
        }
    }

    private void d() {
        f();
    }

    private void e() {
        new a(this);
    }

    private void f() {
        new b(this);
    }

    /* JADX WARNING: Removed duplicated region for block: B:12:0x002e  */
    /* JADX WARNING: Removed duplicated region for block: B:14:0x0035  */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public void onCreate() {
        /*
            r4 = this;
            super.onCreate()
            java.lang.String r0 = biz.obake.team.touchprotector.c.k()
            int r1 = r0.hashCode()
            r2 = 1031619013(0x3d7d41c5, float:0.0618303)
            r3 = 1
            if (r1 == r2) goto L_0x0021
            r2 = 1758553859(0x68d16703, float:7.9109986E24)
            if (r1 == r2) goto L_0x0017
            goto L_0x002b
        L_0x0017:
            java.lang.String r1 = "biz.obake.team.touchprotector"
            boolean r0 = r0.equals(r1)
            if (r0 == 0) goto L_0x002b
            r0 = 0
            goto L_0x002c
        L_0x0021:
            java.lang.String r1 = "biz.obake.team.touchprotector:tpas"
            boolean r0 = r0.equals(r1)
            if (r0 == 0) goto L_0x002b
            r0 = 1
            goto L_0x002c
        L_0x002b:
            r0 = -1
        L_0x002c:
            if (r0 == 0) goto L_0x0035
            if (r0 == r3) goto L_0x0031
            goto L_0x0038
        L_0x0031:
            r4.d()
            goto L_0x0038
        L_0x0035:
            r4.c()
        L_0x0038:
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: biz.obake.team.touchprotector.CustomApplication.onCreate():void");
    }
}
